#!/bin/sh                                                                   

hostlist=$1

if [ ! -f $2 ]
then
    echo "$2 not found"
    exit 1
fi

if [ -f $hostlist ]
then
    cat $hostlist | while read line
    do
	if [ line ]
	then
		echo "scp $2 yfeng38@$line:$3 &"
		scp $2 yfeng38@$line:$3 &
	fi
    done
else
    echo "$hostlist not found"
fi


